xtreg WB_growth GDP_UN logFDInew logGrossDomInvest logConsumptionSpending loglit loglex logphone4 polity2 Major Britcol Africa Sam Asia MEast DUM70 DUM80 DUM90 DUM100 LF, cluster(Nation)

xtfevd WB_growth WB_gdp95 logFDInew logGrossDomInvest logConsumptionSpending loglit logphone4 Major polity2 LB RB LF RF, invariant(LB RB LF RF)


***********
USE THE FOLLOWING LOOP
REPLACE xtfevd WITH xtreg AND GET RID OF THE OPTION 'INVARIANT'
************

#delimit;
foreach x of varlist LF RAF RF LRF LGF LIF LRGIF RARF RAGF RAIF RARGIF RIF RGF IGF 
LB RAB RB LRB LGB LIB LRGIB RARB RAGB RAIB RARGIB 
LRC LGC LIC RaRC RaGC RaIC RGC RIC IGC 
LRXC LGXC LIXC RARXC RAGXC RAIXC RGXC RIXC IGXC{;
quietly xtfevd WB_growth `x' WB_gdp95 logFDInew logGrossDomInvest logConsumptionSpending loglit loglex logphone4 Conflict Britcol polity2 Africa Sam Asia MEast, invariant(`x' Britcol Africa Sam Asia MEast polity2 loglit loglex) cluster(CCode);
quietly outreg2 using "/Users/jss83/Publications and Conference Papers/Economic Growth/Table2.xls", e(N N_g r2 r2_o);
};
